/*****************************************************************************
 *
 *                      HUSONG PROPRIETARY INFORMATION
 *
 *          The information contained herein is proprietary to HUSONG
 *           and shall not be reproduced or disclosed in whole or in part
 *                    or used for any design or manufacture
 *              without direct written authorization from HUSONG.
 *
 *            Copyright (c) 2015 by HUSONG.  All rights reserved.
 *
 *****************************************************************************/
package me.send.business.service.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author maxmin
 *
 * @date 2015年8月7日 上午10:53:03
 */
@SuppressWarnings("serial")
public class ReturnBean implements Serializable{

	//成功反回的code
	public static final int SUCCESS = 0;
	
	//失败返回的code
	public static final int FAIL = 1;
	
	//成功反回的消息
	public static final String SUCCESS_STR = "SUCCESS";
	
	//失败返回的消息
	public static final String FAIL_STR = "FAIL";
	
	private int code = FAIL;
	
	private String message = FAIL_STR;
	
	@SuppressWarnings("rawtypes")
	private List datas = new ArrayList();

	/**
	 * @return the code
	 */
	public int getCode() {
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(int code) {
		this.code = code;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the datas
	 */
	@SuppressWarnings("rawtypes")
	public List getDatas() {
		return datas;
	}

	/**
	 * @param datas
	 *            the datas to set
	 */
	@SuppressWarnings("rawtypes")
	public void setDatas(List datas) {
		this.datas = datas;
	}

}
